<?php

define('CACHE_VERSION', 3);
define('PRIVATE_KEY', 'eo1Ro4z9ZFNRMx0b');

$GLOBALS['tb_articles'] = 'articles';
$GLOBALS['tb_categories'] = 'categories';
$GLOBALS['tb_categories_orders'] = 'categories_orders';
$GLOBALS['tb_cms_articles'] = 'cms_articles';
$GLOBALS['tb_evidence_types'] = 'evidence_types';
$GLOBALS['tb_evidences'] = 'evidences';
$GLOBALS['tb_free_days'] = 'free_days';
$GLOBALS['tb_files'] = 'files';
$GLOBALS['tb_notifications'] = 'notifications';
$GLOBALS['tb_page_settings'] = 'page_settings';
$GLOBALS['tb_pictures'] = 'pictures';
$GLOBALS['tb_ref_article_files'] = 'ref_article_files';
$GLOBALS['tb_ref_article_gallery'] = 'ref_article_gallery';
$GLOBALS['tb_ref_article_pictures'] = 'ref_article_pictures';
$GLOBALS['tb_ref_article_video'] = 'ref_article_video';
$GLOBALS['tb_ref_category_pictures'] = 'ref_category_pictures';
$GLOBALS['tb_ref_docs_files'] = 'ref_docs_files';
$GLOBALS['tb_ref_evidence_files'] = 'ref_evidence_files';
$GLOBALS['tb_translations'] = 'translations';
$GLOBALS['tb_users'] = 'users';
$GLOBALS['tb_user_areas'] = 'user_areas';
$GLOBALS['tb_videos'] = 'videos';

// settings
define("SESSION_EXPIRATION_LIMIT", 3600);

if (empty ($_SESSION['lang']))
    define("HOME",HTDOCS);
else
    define("HOME",HTDOCS.$_SESSION['lang'].'/');

define('USER_TYPE_UCITEL', 80);
define('USER_TYPE_SPRAVCA', 90);
define('USER_TYPE_ADMIN', 91);

define("USER_AREA_PUBLIC", 0);
define("USER_AREA_PRIVATE", 1);
define("USER_AREA_TEACHER", 8);
define("USER_AREA_ADMIN", 9);

define('FIRST_SCHOOL_YEAR', 2012);

define('PICTURE_GALLERY_TYPE', 1);
define('PICTURE_PAGE_ILL_TYPE', 2);
define('PICTURE_ARTICLE_ILL_TYPE', 3);
define('PICTURE_HOME_TYPE', 4);
define('VIDEO_ARTICLE_TYPE', 11);

define('PAGE_ILL_PICTURE_TYPE_MAIN', 1);
define('PAGE_ILL_PICTURE_TYPE_ALT', 2);

$GLOBALS['folder_names'] = array(
    PICTURE_PAGE_ILL_TYPE => 'page_images',
    PICTURE_ARTICLE_ILL_TYPE => 'article_images',
    PICTURE_GALLERY_TYPE => 'galleries',
    PICTURE_HOME_TYPE => 'home_images',
    VIDEO_ARTICLE_TYPE => 'article_videos'
);

$GLOBALS['pic_sizes_'.PICTURE_PAGE_ILL_TYPE] = array(
    1 => array(128,0,false),
    2 => array(1000,0,true)
);

$GLOBALS['pic_sizes_'.PICTURE_ARTICLE_ILL_TYPE] = array(
    1 => array(128,0,false),
    2 => array(1000,0,true)
);

$GLOBALS['pic_sizes_'.PICTURE_GALLERY_TYPE] = array(
    1 => array(128,0,false),
    2 => array(1000,0,true)
);

$GLOBALS['pic_sizes_'.PICTURE_HOME_TYPE] = array(
    1 => array(600,0,false),
    2 => array(1000,0,true)
);

define("ARTICLES_LIMIT", 10);

define("VIDEO_TYPE_YOUTUBE", 1);
define("VIDEO_TYPE_DISC", 2);

$GLOBALS['article_layout_types'] = array(
    1 => 'Ilustračný obrázok vľavo',
    2 => 'Ilustračný obrázok vpravo',
    3 => 'Nízky ilustračný obrázok na celú šírku',
    4 => 'Vysoký ilustračný obrázok na celú šírku',
    5 => 'Iba ilustračný obrázok na celú šírku a výsku',
    0 => 'Žiadny ilustračný obrázok'
);

$GLOBALS['article_layout_types_js'] = array(
    1 => 'left',
    2 => 'right',
    3 => 'small',
    4 => 'big',
    5 => 'full',
    0 => 'none'
);

?>
